package zhu.areas.user.data;

import java.util.Date;


/**
 * @hibernate.class table="T_User" dynamic-insert="true" dynamic-update="true"  lazy="false"
 * @author Administrator
 * 
 */
public class User implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	//此处为User表的字段
	private int userID;
	private String username;
	private String password;
	private String email;
	private Date regTime;
	
	
//   建立单向关联
//	//此处为外键关系
//	private Set tenderApps = new HashSet(0);     //招标申请表
//	private Set tenderComms = new HashSet(0);    //招标评论表
//	
//	private Set bidApps = new HashSet(0);        //竞标申请表
//	private Set bidComms= new HashSet(0);        //竞标评论表
//	
//	private Set tenderDisps = new HashSet(0);    //招标分配表审核专家
//	private Set tenderDisps2 = new HashSet(0);   //招标分配表执行人
//	
//	private Set articles = new HashSet(0);       //政策解读表	
//	private Set articleComms = new HashSet(0);   //政策解读评论表
//	
//	private Set compAppSet=new HashSet(0);
//	private Set attendLists=new HashSet(0);
//	private Set sponsors=new HashSet(0);

	
	
	
	public User() {

	}

	public User(int userID) {
		this.userID = userID;
	}

	/**
	 * @hibernate.id column="userID" generator-class="increment"
	 *               unsaved-value="null"
	 * @return
	 */
	public int getUserID() {
		return userID;
	}

	public void setUserID(int userID) {
		this.userID = userID;
		
	}

	/**
	 * @hibernate.property column = "username"  not-null="true"
	 * @return
	 */
	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	/**
	 * @hibernate.property column = "password"  not-null="true"
	 * @return
	 */
	
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	/**
	 * @hibernate.property column = "email"  not-null="true"
	 * @return
	 */
	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}


	/**
	 * @hibernate.property column = "regTime"  not-null="true"
	 * @return
	 */
	public Date getRegTime() {
		return regTime;
	}

	public void setRegTime(Date regTime) {
		this.regTime = regTime;
	}
//	/**
//	 * @hibernate.set table="T_TenderApp" inverse="true"  lazy="true"
//	 * @hibernate.collection-key column="AppID"
//	 * @hibernate.collection-one-to-many class="zhu.areas.tenderbid.data.TenderApp"
//	 */	
//	public Set getTenderApps() {
//		return tenderApps;
//	}
//
//	public void setTenderApps(Set tenderApps) {
//		this.tenderApps = tenderApps;
//	}
//
//	/**
//	 * @hibernate.set table="T_TenderComm" inverse="true"  lazy="true"
//	 * @hibernate.collection-key column="CommOperatorID"
//	 * @hibernate.collection-one-to-many class="zhu.areas.tenderbid.data.TenderComm"
//	 */
//	public Set getTenderComms() {
//		return tenderComms;
//	}
//
//	public void setTenderComms(Set tenderComms) {
//		this.tenderComms = tenderComms;
//	}
//
//	/**
//	 * @hibernate.set table="T_BidApp" inverse="true"  lazy="true"
//	 * @hibernate.collection-key column="ApplierID"
//	 * @hibernate.collection-one-to-many class="zhu.areas.tenderbid.data.BidApp"
//	 */
//	public Set getBidApps() {
//		return bidApps;
//	}
//
//	public void setBidApps(Set bidApp) {
//		this.bidApps = bidApp;
//	}
//
//	/**
//	 * @hibernate.set table="T_BidComm" inverse="true"  lazy="true"
//	 * @hibernate.collection-key column="CommOperatorID"
//	 * @hibernate.collection-one-to-many class="zhu.areas.tenderbid.data.BidComm"
//	 */
//	public Set getBidComms() {
//		return bidComms;
//	}
//
//	public void setBidComms(Set bidComm) {
//		this.bidComms = bidComm;
//	}
//
//	/**
//	 * @hibernate.set table="T_TenderDisp" inverse="true"  lazy="true" 
//	 * @hibernate.collection-key column="AuditOperatorID"
//	 * @hibernate.collection-one-to-many class="zhu.areas.tenderbid.data.TenderDisp"
//	 */
//	public Set getTenderDisps() {
//		return tenderDisps;
//	}
//
//	public void setTenderDisps(Set tenderDisps) {
//		this.tenderDisps = tenderDisps;
//	}
//
//	/**
//	 * @hibernate.set table="T_TenderDisp" inverse="true"  lazy="true"
//	 * @hibernate.collection-key column="OperatorID"
//	 * @hibernate.collection-one-to-many class="zhu.areas.tenderbid.data.TenderDisp"
//	 */
//	
//	public Set getTenderDisps2() {
//		return tenderDisps2;
//	}
//
//	public void setTenderDisps2(Set tenderDisps2) {
//		this.tenderDisps2 = tenderDisps2;
//	}
//	
//	/**
//	 * @hibernate.set table="T_Article" inverse="true"  lazy="true"
//	 * @hibernate.collection-key column="PublisherID"
//	 * @hibernate.collection-one-to-many class="zhu.areas.hatchnav.data.Article"
//	 */
//	public Set getArticles() {
//		return articles;
//	}
//
//	public void setArticles(Set articles) {
//		this.articles = articles;
//	}
//
//	/**
//	 * @hibernate.set table="T_ArticleComm" inverse="true"  lazy="true"
//	 * @hibernate.collection-key column="CommUID"
//	 * @hibernate.collection-one-to-many class="zhu.areas.hatchnav.data.ArticleComm"
//	 */
//	public Set getArticleComms() {
//		return articleComms;
//	}
//
//	public void setArticleComms(Set articleComms) {
//		this.articleComms = articleComms;
//	}
//
//	/**
//	 * @hibernate.set table="T_CompApp" inverse="true"  lazy="false" 
//	 * @hibernate.collection-key column="ApplierID"
//	 * @hibernate.collection-one-to-many class="zhu.areas.match.data.CompApp"
//	 */
//	public Set getCompAppSet() {
//		return compAppSet;
//	}
//
//	public void setCompAppSet(Set compAppSet) {
//		this.compAppSet = compAppSet;
//	}
//
//	/**
//	 * @hibernate.set table="T_AttendList" inverse="true"  lazy="false" 
//	 * @hibernate.collection-key column="UserID"
//	 * @hibernate.collection-one-to-many class="zhu.areas.match.data.AttendList"
//	 */
//	public Set getAttendLists() {
//		return attendLists;
//	}
//
//	public void setAttendLists(Set attendLists) {
//		this.attendLists = attendLists;
//	}
//
//	/**
//	 * @hibernate.set table="T_Sponsor" inverse="true"  lazy="true" 
//	 * @hibernate.collection-key column="SponsorID"
//	 * @hibernate.collection-one-to-many class="zhu.areas.match.data.Sponsor"
//	 */
//	public Set getSponsors() {
//		return sponsors;
//	}
//
//	public void setSponsors(Set sponsors) {
//		this.sponsors = sponsors;
//	}

	



}
